package com.sptpc.qimoxiangmu.model;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

@Entity
@Table(name ="c_user")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class User extends BaseEntity implements Serializable {
    @Column(nullable = false)//state数据库中为非空
    private String user;

    @Column(nullable = false)//state数据库中为非空
    private String password;

}
